<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='完工报工')" />
<link th:href="@{plugins/common/css/basemessageDesk.css}" rel="stylesheet" />
<link th:href="@{css/desk/menu/operationCJ.css}" rel="stylesheet" />
<body class="sticky-header left-side-collapsed blank_bg" style="">
	<header class="topbar">
		<!-- page heading start-->
		<div class="head" id="titleHide">
			<div class="headTitle">完工报工</div>
			<div class="backIcon" title="返回" onclick="javascript:history.back(-1);">
				<i class="fa fa-arrow-left"></i>
			</div>
		</div>
		<div class="page-heading">
			<div class="" >
				<form action="#" id="start">
					<table border="0" cellspacing="0" cellpadding="0" class="info">
						<tr>
							<td colspan="2" style="color:red;font-size:22px;font-weight:700;">当前用户<input type="text" id="dname" name="dname" class=" form-control"  readonly="readonly"/></td>
							<input type="text" id="dnameid" name="dnameid" class="clean-c form-control"  readonly="readonly" style="display:none;"/>
						</tr>
						<tr>
							<td style="text-align: left;">
								派工单号/操作工卡号
								<input type="text" id="fWorkerF" name="fWorker" class="clean-c form-control" autocomplete="off" />
								<!-- <button  type="button" class="btn btn-info cleanAll" id="empty">清空</button> -->
							</td>
							<td>操作工姓名<input type="text" id="wname" name="wname" class="clean-c form-control" placeholder="自动获取" readonly="readonly"/></td>
						</tr>
					</table>
					<div style="margin-top: 10px;">
						<table id="finishTable" class="table dataTable table-hover tableList" style="">
						</table>
					</div>
				</form>
				<form action="#" id="finishData1">
					<div id = "contentId_single">										
					</div>					
					<div>
					<div class="col-sm-2 col-md-2 bottomContent">
					    <input type="hidden" id="fWorker" name="fWorker" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
						<input type="hidden" id="fStartWorkId" name="fStartWorkId" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
						<input type="hidden" id="fTargetQty" name="fTargetQty" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"/>
					</div>
				</form>
				<div id = "content_bottom_single" style="display:none;float:left;width:100%">
				<div class="bottomTips">
					<span class="requiredCss">注：1、*号为必填字段！ &nbsp;2、工废1为工废不记个人</span>
				</div>
				<div class="bottomBTNGroup">
					<button  type="button" class="btn btn-info bottomBTN" id="save_single" style="font-size: 24px;">提交</button>
					<button  type="button" class="btn btn-info bottomBTN" id="reset_single" style="font-size: 24px;">重置</button>
					<button  type="button" class="btn btn-info bottomBTN" id="godown_single" style="font-size: 24px;">挂起</button>
				</div>
				</div>
			</div>
		</div>
		<!-- 调用showPDFList里的listModal，查询图纸列表 -->
		<div th:include="desk/menu/showPDFList :: listModal" />
		<!-- 模态框 start -->
		<div class="modal fade " id="mergeModal" role="dialog"
			aria-labelledby="myModalLabel" aria-hidden="true"
			style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
			<div class="modal-dialog" style="width: 1200px;">
				<div class="modal-content" style="width: auto;">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"
							aria-hidden="true">&times;</button>
						<h4 class="modal-title" id="titleModal">合并工序</h4>
					</div>
					<div id="modal-body-id" class="modal-body"
						style="height: auto; padding: 10px;margin-left: 24px;">
						<form action="#" id="finishData">
							<div id="contentId"></div>								
						    <div class="col-sm-2 col-md-2 bottomContent">
								<input type="hidden" id="fWorker" name="fWorker" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" /> 
		     					<input type="hidden" id="fStartWorkId" name="fStartWorkId" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" /> 
    							<input type="hidden" id="fTargetQty" name="fTargetQty" class="clean-c form-control" autocomplete="off" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" />
							</div>
							</form>
							<div id="content_bottom"
								style="display: none; float: left; width: 100%">
								<div class="bottomTips">
									<span class="requiredCss">注：1、*号为必填字段！ &nbsp;2、工废1为工废不记个人</span>
								</div>
								<div class="bottomBTNGroup">
									<button type="button" class="btn btn-info bottomBTN" id="save" style="font-size: 24px;">提交</button>
									<button type="button" class="btn btn-info bottomBTN" id="reset" style="font-size: 24px;">重置</button>
									<button type="button" class="btn btn-info bottomBTN" id="godown" style="font-size: 24px;">挂起</button>
								</div>
							</div>
					</div>
				</div>
			</div>
			<!-- 模态框 end -->
			
			<!-- page heading end-->
	</header>
	<span id="type" style="display: none;">1</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: indexPublic" />
	<script th:src="@{js/desk/menu/finishOperationCJ.js}"></script>
	<script th:src="@{js/desk/menu/showPDFList.js}"></script>
</body>
</html>